<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Site','SaveList')}" method="post">
<h3 class="title">列表页设置</h3>
<table class="admin-table">
	<tr>
	<td width="120">显示商品数</td>
	<td>
<input name="page_size" id="page_size" type="text" {if $this->data['info']}value="{$this->data['info']['page_size']}"{/if} />
<span etype='error_info' class="error_info" id="page_size_info">1-40之间的数字</span>
	</td>
	</tr>
	<tr>
	<td>类目ID</td>
	<td>
<input name="cid" id="cid" type="text" {if $this->data['info']}value="{$this->data['info']['cid']}"{/if} />
<span etype='error_info' class="error_info" id="cid_info">例如女装是16，填写后网站只能搜索到这个类目下的商品，如果你整个网站只推广单个类目，那么在这里填写对应的类目ID，否则请不要填写</span>
	</td>
	</tr>
	<tr>
	<td>商品所在地</td>
	<td>
<input name="area" id="area" type="text" {if $this->data['info']}value="{$this->data['info']['area']}"{/if} />
<span etype='error_info' class="error_info" id="area_info">例如:杭州市</span>
	</td>
	</tr>
	<tr>
	<td>佣金比率</td>
	<td>
<input name="start_commissionRate" id="start_commissionRate" type="text" {if $this->data['info']}value="{$this->data['info']['start_commissionRate']}"{/if} />
<span etype='error_info' class="error_info" id="start_commissionRate_info"></span> 至 
<input name="end_commissionRate" id="end_commissionRate" type="text" {if $this->data['info']}value="{$this->data['info']['end_commissionRate']}"{/if} />
<span etype='error_info' class="error_info "id="end_commissionRate_info">请填写乘100后的数字，如3%需填写300</span>
	</td>
	</tr>
	<tr>
	<td>30天累计推广量</td>
	<td>
<input name="start_commissionNum" id="start_commissionNum" type="text" {if $this->data['info']}value="{$this->data['info']['start_commissionNum']}"{/if} />
<span etype='error_info' class="error_info" id="start_commissionNum_info"></span> 至 
<input name="end_commissionNum" id="end_commissionNum" type="text" {if $this->data['info']}value="{$this->data['info']['end_commissionNum']}"{/if} />
<span etype='error_info' class="error_info" id="end_commissionNum_info"></span>
	</td>
	</tr>
	<tr>
	<td>卖家信用</td>
	<td>
<select name="start_credit">
<option value="1heart" {if $this->data['info']['start_credit']=='1heart'}selected{/if}>一心</option>
<option value="2heart" {if $this->data['info']['start_credit']=='2heart'}selected{/if}>两心</option>
<option value="3heart" {if $this->data['info']['start_credit']=='3heart'}selected{/if}>三心</option>
<option value="4heart" {if $this->data['info']['start_credit']=='4heart'}selected{/if}>四心</option>
<option value="5heart" {if $this->data['info']['start_credit']=='5heart'}selected{/if}>五心</option>
<option value="1diamond" {if $this->data['info']['start_credit']=='1diamond'}selected{/if}>一钻</option>
<option value="2diamond" {if $this->data['info']['start_credit']=='2diamond'}selected{/if}>两钻</option>
<option value="3diamond" {if $this->data['info']['start_credit']=='3diamond'}selected{/if}>三钻</option>
<option value="4diamond" {if $this->data['info']['start_credit']=='4diamond'}selected{/if}>四钻</option>
<option value="5diamond" {if $this->data['info']['start_credit']=='5diamond'}selected{/if}>五钻</option>
<option value="1crown" {if $this->data['info']['start_credit']=='1crown'}selected{/if}>一冠</option>
<option value="2crown" {if $this->data['info']['start_credit']=='2crown'}selected{/if}>两冠</option>
<option value="3crown" {if $this->data['info']['start_credit']=='3crown'}selected{/if}>三冠</option>
<option value="4crown" {if $this->data['info']['start_credit']=='4crown'}selected{/if}>四冠</option>
<option value="5crown" {if $this->data['info']['start_credit']=='5crown'}selected{/if}>五冠</option>
<option value="1goldencrown" {if $this->data['info']['start_credit']=='1goldencrown'}selected{/if}>一黄冠</option>
<option value="2goldencrown" {if $this->data['info']['start_credit']=='2goldencrown'}selected{/if}>二黄冠</option>
<option value="3goldencrown" {if $this->data['info']['start_credit']=='3goldencrown'}selected{/if}>三黄冠</option>
<option value="4goldencrown" {if $this->data['info']['start_credit']=='4goldencrown'}selected{/if}>四黄冠</option>
<option value="5goldencrown" {if $this->data['info']['start_credit']=='5goldencrown'}selected{/if}>五黄冠</option>
</select>
 至 
<select name="end_credit">
<option value="5goldencrown" {if $this->data['info']['end_credit']=='5goldencrown'}selected{/if}>五黄冠</option>
<option value="4goldencrown" {if $this->data['info']['end_credit']=='4goldencrown'}selected{/if}>四黄冠</option>
<option value="3goldencrown" {if $this->data['info']['end_credit']=='3goldencrown'}selected{/if}>三黄冠</option>
<option value="2goldencrown" {if $this->data['info']['end_credit']=='2goldencrown'}selected{/if}>二黄冠</option>
<option value="1goldencrown" {if $this->data['info']['end_credit']=='1goldencrown'}selected{/if}>一黄冠</option>
<option value="5crown" {if $this->data['info']['end_credit']=='5crown'}selected{/if}>五冠</option>
<option value="4crown" {if $this->data['info']['end_credit']=='4crown'}selected{/if}>四冠</option>
<option value="3crown" {if $this->data['info']['end_credit']=='3crown'}selected{/if}>三冠</option>
<option value="2crown" {if $this->data['info']['end_credit']=='2crown'}selected{/if}>两冠</option>
<option value="1crown" {if $this->data['info']['end_credit']=='1crown'}selected{/if}>一冠</option>
<option value="5diamond" {if $this->data['info']['end_credit']=='5diamond'}selected{/if}>五钻</option>
<option value="4diamond" {if $this->data['info']['end_credit']=='4diamond'}selected{/if}>四钻</option>
<option value="3diamond" {if $this->data['info']['end_credit']=='3diamond'}selected{/if}>三钻</option>
<option value="2diamond" {if $this->data['info']['end_credit']=='2diamond'}selected{/if}>两钻</option>
<option value="1diamond" {if $this->data['info']['end_credit']=='1diamond'}selected{/if}>一钻</option>
<option value="5heart" {if $this->data['info']['end_credit']=='5heart'}selected{/if}>五心</option>
<option value="4heart" {if $this->data['info']['end_credit']=='4heart'}selected{/if}>四心</option>
<option value="3heart" {if $this->data['info']['end_credit']=='3heart'}selected{/if}>三心</option>
<option value="2heart" {if $this->data['info']['end_credit']=='2heart'}selected{/if}>两心</option>
<option value="1heart" {if $this->data['info']['end_credit']=='1heart'}selected{/if}>一心</option>
</select>
<span etype='error_info' class="error_info" id="start_credit_info"></span>
<span etype='error_info' class="error_info" id="end_credit_info"></span>
	</td>
	</tr>
	<tr>
	<td>是否消保商家</td>
	<td>
<input name="guarantee" id="guarantee" type="checkbox" value="true" {if $this->data['info']['guarantee']=='true'}checked{/if} />
<span etype='error_info' class="error_info" id="guarantee"></span>
	</td>
	</tr>
	<tr><td colspan="2"><input id="btnSave" type="submit" value="保存" /></td></tr>
</table>
</form>
</div>